package com.atguigu.guli.service.trade.feign;


import com.atguigu.guli.service.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-edu")
@RequestMapping("/api/edu/educourse")
public interface CourseFeign {
    @GetMapping("/order/{courseId}")
    public R OrderCourse(@PathVariable("courseId") String courseId);

    @GetMapping("/feign/{courseId}")
    public void updateCourseByCount(@PathVariable String courseId);
}
